package com.waterdrop.wlsggk.service;

import com.waterdrop.wlsggk.pojo.DishMaterial;

import java.util.List;

public interface DishMaterialService {

    /**
     * 查询菜品物料信息集合
     *
     * @param dishMaterial
     * @return
     */
    List<DishMaterial> selectWlsggkDishMaterialList(DishMaterial dishMaterial);


    /**
     * 根据菜品id，删除菜品物料信息
     *
     * @param ids 菜品ID
     * @return
     */
    public int deleteWlsggkDishMaterial(Long[] ids);


    /**
     * 根据菜品id查询菜品物料信息
     *
     * @param id 菜品ID
     * @return
     */
    public List<DishMaterial> selectWlsggkDishMaterialByDishId(Long id);


    /**
     * 添加保存菜品物料的关联关系
     *
     * @param dishMaterials 菜品物料信息
     * @return
     */
    public int insertWlsggkDishMaterial(List<DishMaterial> dishMaterials);


    /**
     * 修改菜品物料
     *
     * @param dishMaterial 菜品物料信息
     * @return
     */
    public int updateWlsggkDishMaterial(DishMaterial dishMaterial);
}

